<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <alert msg="muhaha~" ></alert>
        <user username="whh"></user>
    </div>
</body>
<template id="alertTpl">
    <button @click="onClick">弹弹弹</button>
</template>
<template id="aTpl">
    <a href="'/user/'+ username">@{{username}}</a>
</template>
<script src="../lib/vue.js"></script>
<script src="js/main.js"></script>

</html>